package com.ajieee.merge.controller.finance;

import com.ajieee.merge.service.BacktestService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ajieee
 * @date 2025-11-02
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/backtest")
public class BacktestController {

	private final BacktestService backtestService;
	
	@GetMapping("/ma")
	public String ma(@RequestParam String targetCode) {
		backtestService.ma(targetCode);
		return "success";
	}

}
